package main

import (
	"github.com/gin-gonic/gin"
)

//_ "gitee.com/devopsmi/demo/app/db"
//orm "gitee.com/devopsmi/demo/app/db"
//"gitee.com/devopsmi/demo/app/router"
func main() {
	//defer orm.DB.Close()
	//router := router.InitRouter()
	//router.Run(":8000")
	r := gin.Default()
	r.GET("/ping", func(c *gin.Context) {
		c.JSON(200, gin.H{
			"message": "pong",
		})
	})
	r.GET("/users", Users)
	r.POST("/user", Store)
	r.PUT("/user/:id", Update)
	r.DELETE("/user/:id", Destroy)
	r.Run()
}
